import * as echarts from 'echarts/core';
import { LabelLayout, UniversalTransition } from 'echarts/features';
import { SVGRenderer } from 'echarts/renderers';
import {
  GridComponent,
  TooltipComponent,
  TitleComponent,
  LegendComponent,
  ToolboxComponent,
  MarkPointComponent,
  DatasetComponent
} from 'echarts/components';
import { BarChart,PieChart } from 'echarts/charts';

echarts.use([
  SVGRenderer,
  LabelLayout,
  UniversalTransition,
  GridComponent,
  TooltipComponent,
  TitleComponent,
  LegendComponent,
  ToolboxComponent,
  MarkPointComponent,
  DatasetComponent,
  MarkPointComponent,
  BarChart,
  PieChart
]);

export {
  echarts,
};
